package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("sys_user")
public class SysUser {
    private Integer id;
    private String name;
    private String mobile;
    private String email;
    private Integer status;
    private String password;

    @TableField(exist = false)
    private Department department;

    @TableField(exist = false)
    private List<Role> roles;
}
